<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>添加附件类型</title>
	<meta name="decorator" content="ani"/>
	<script type="text/javascript">
        function save() {
            var isValidate = jp.validateForm('#inputForm');//校验表单
            if(!isValidate){
				jp.error("必填项不能为空，请检查！");
                return false;
            }else{
                jp.loading();
                jp.post("${ctx}/sys/adjunctClass/save",$('#inputForm').serialize(),function(data){
                    if(data.success){
                        jp.getParent().refreshDictValue();
                        var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
                        parent.layer.close(dialogIndex);
                        jp.success(data.msg)

                    }else{
                        jp.error(data.msg);
                    }
                })
            }

        }
	</script>
</head>
<body class="bg-white">
	<form:form id="inputForm" modelAttribute="adjunctClass" action="${ctx}/sys/adjunctClass/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<form:hidden path="objectId"/>
		<table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
		   <tbody>
		       <tr>
				 	<td  class="width-15 active">
					 	<label class="pull-right"><font color="red">*</font>附件名称:</label>
				 	</td>
				 	<td class="width-35" >
					 	<form:input path="name" htmlEscape="false" maxlength="50" class="form-control "/>
				 	</td>
				   	<td  class="width-15 active">
					   	<label class="pull-right">附件类型:</label>
				   	</td>
				   	<td class="width-35" >
						<form:select path="type" class="form-control ">
							<form:option value="" label=""/>
							<form:options items="${fns:getDictList('Sys_AdjunctType')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
						</form:select>
				   	</td>
		      </tr>
		       <tr>
				   <td  class="width-15 active">
					   <label class="pull-right"><font color="red">*</font>上传路径:</label>
				   </td>
				   <td class="width-35" >
					   <form:input path="uploadPath" htmlEscape="false" maxlength="50" class="form-control "/>
				   </td>
				   <td  class="width-15 active">
					   <label class="pull-right"><font color="red">*</font>是否必传:</label>
				   </td>
				   <td class="width-35" >
					   <form:select path="yesno" class="form-control ">
						   <form:option value="" label=""/>
						   <form:options items="${fns:getDictList('Sys_YesNo')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					   </form:select>
				   </td>
			   </tr>
			   <tr>
				   <td  class="width-15 active">
					   <label class="pull-right"><font color="red">*</font>图标:</label>
				   </td>
				   <td class="width-35" >
					   <form:input path="imagee" htmlEscape="false" maxlength="50" class="form-control "/>
				   </td>
				   <td  class="width-15 active">
					   <label class="pull-right">自定义classId:</label>

				   </td>
				   <td class="width-35" >
					   <form:input path="classIdByUser" placeholder="多附件需自定义本项" htmlEscape="false" maxlength="50" class="form-control"/>
				   </td>
			   </tr>
			   <tr>
				   <td  class="width-15 active">
					   <label class="pull-right">流程节点:</label>
				   </td>
				   <td class="width-35" >
					   <form:input path="actState" htmlEscape="false" maxlength="50" class="form-control "/>
				   </td>

			   </tr>


		   </tbody>
		   </table>
	</form:form>
</body>
</html>
